<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
		<meta http-equiv="Pragma" content="no-cache" />
		<meta http-equiv="Expires" content="0" />
		<title>定制详情</title>
		<link rel="stylesheet" href="../css/common.css">
		<link rel="stylesheet" href="../css/my.css">
		<script src="../js/jquery-3.2.1.min.js"></script>
		<script src="../js/media.js"></script>
		<script src="../js/common.js"></script>
		<style type="text/css">
			.ding{
				width:100%;
				height:100%
				padding:0 0.1rem;
			}
			.ding .img_ding{
				box-sizing: border-box;
				padding:0.1rem;
				width:100%;
				height:2rem;
			}
			.ding .ding_inf{
				box-sizing: border-box;
				padding:0.1rem;
				box-sizing: border-box;
				width:100%;
			}
			.ding .ding_inf .ding_inf_tit{
				font-size:0.12rem;
				color:#5f3104;
				margin-bottom:0.05rem;
			}
			.ding .ding_inf .ding_inf_con{
				font-size:0.12rem;
				text-indent: 0.24rem;
				color:#333
			}
		</style>
	</head>
	<body>
		<div class="ding">
			<div class="imgs">
				<img class="img_ding" src="" alt="" />
			</div>
			<div class="ding_inf">
				<p class="ding_inf_tit">定制信息</p>
				<p class="ding_inf_con dingzhi_inf"></p>
			</div>
			<div class="ding_inf">
				<p class="ding_inf_tit">定制描述</p>
				<p class="ding_inf_con dingzhi_des"></p>
			</div>
			<div class="ding_inf">
				<p class="ding_inf_tit">定制价格</p>
				<p class="ding_inf_con dingzhi_pri"></p>
			</div>
			<div class="ding_inf">
				<p class="ding_inf_tit">订单状态</p>
				<p class="ding_inf_con dingzhi_status"></p>
			</div>
			<div class="shopstips" style="display:none">
				<div class="ding_inf">
					<p class="ding_inf_tit">店铺名称</p>
					<a class="ding_inf_con dingzhi_name" http="" style="display:inline-block;text-indent: 0.24rem;text-decoration: underline;"></a>
				</div>
				<div class="ding_inf">
					<p class="ding_inf_tit">店铺介绍</p>
					<p class="ding_inf_con dingzhi_desc"></p>
				</div>				
			</div>
			<div class="usertips" style="display:none">
				<div class="ding_inf">
					<p class="ding_inf_tit">定制者姓名</p>
					<p class="ding_inf_con dingzhi_username"></p>
				</div>
				<div class="ding_inf">
					<p class="ding_inf_tit">定制者电话</p>
					<p class="ding_inf_con dingzhi_userphone"></p>
				</div>
				<div class="ding_inf">
					<p class="ding_inf_tit">定制者地址</p>
					<p class="ding_inf_con dingzhi_address"></p>
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript">
		$.ajax({
			url:base_url+'ZITAOHUI/selectCustomization',//私人定制
			type:'post',
			data:{
				//store_id:sessionStorage.getItem("s_id"),//私人定制店铺id
				produce_id:getUrlParam('p_id'),//私人定制id
				order_id:getUrlParam('o_id')
			},
			success:function(res){
				$('.img_ding').attr('src',res.extend.list[0].produce_head_image);//定制的图片
				$('.dingzhi_inf').text(res.extend.list[0].customization_msg);//定制的信息
				$('.dingzhi_des').text(res.extend.list[0].customization_describe);//定制的描述
				$('.dingzhi_pri').text(res.extend.list[0].produce_price+'元');//定制的描述
				$('.dingzhi_status').text(res.extend.list[0].order_Msg);//订单状态
				if(getUrlParam('flag_us')==1){
					$('.usertips').show(300);
					$('.dingzhi_username').text(res.extend.list[0].address_name);//定制者姓名
					$('.dingzhi_userphone').text(res.extend.list[0].address_phone);//定制者电话
					$('.dingzhi_address').text(res.extend.list[0].address_add_desc);//定制者定制					
				}else if(getUrlParam('flag_us')==2){
					$('.shopstips').show(300);
					$('.dingzhi_name').text(res.extend.list[0].store_name).attr('href','Shop.html?s_id='+res.extend.list[0].store_id);//店铺名称
					$('.dingzhi_desc').text(res.extend.list[0].store_describe);//店铺介绍
				}
			}
		})
	</script>
</html>
